package com.gary.springcloud.entity;

import lombok.*;

/**
 * @author pengrui
 * @date 2020/12/30 - 11:49
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class CommonResult<T> {
    private Integer code;
    private String message;
    private T data;

    public CommonResult(Integer code, String message) {
        this(code, message, null);
    }
}
